Per request of Nikerabbit: add wfDeprecated() to all methods of Image class.
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 6 Apr 2008 17:30:04 +0000 (17:30 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 6 Apr 2008 17:30:04 +0000 (17:30 +0000)
includes/filerepo/Image.php

index 9ab750c..1a5c08a 100644 (file)
@@ -6,6 +6,7 @@
  */
 class Image extends LocalFile {
        function __construct( $title ) {
+               wfDeprecated( __METHOD__ );
                $repo = RepoGroup::singleton()->getLocalRepo();
                parent::__construct( $title, $repo );
        }
@@ -16,6 +17,7 @@ class Image extends LocalFile {
         * @deprecated
         */
        static function newFromTitle( $title, $time = false ) {
+               wfDeprecated( __METHOD__ );
                $img = wfFindFile( $title, $time );
                if ( !$img ) {
                        $img = wfLocalFile( $title );
@@ -32,6 +34,7 @@ class Image extends LocalFile {
         * @deprecated
         */
        static function newFromName( $name ) {
+               wfDeprecated( __METHOD__ );
                $title = Title::makeTitleSafe( NS_IMAGE, $name );
                if ( is_object( $title ) ) {
                        $img = wfFindFile( $title );
@@ -57,6 +60,7 @@ class Image extends LocalFile {
         * @deprecated
         */
        static function imageUrl( $name, $fromSharedDirectory = false ) {
+               wfDeprecated( __METHOD__ );
                $image = null;
                if( $fromSharedDirectory ) {
                        $image = wfFindFile( $name );